<template>
    <div style="display:inline-block;border-radius: 4px;line-height: 16px;padding: 2px 5px;color:#fff;font-size: 12px;vertical-align: middle" :style="{'background': item.tagColor}">
      <i :class="item.tagIcon" style="vertical-align: middle;padding-right: 2px"></i><span style="vertical-align: middle;">{{ item.tagName }}</span>
    </div>
</template>

<script>
export default {
  name: 'crmTag',
  props: {
    item: {
      type: Object,
    },
  },


}
</script>

<style scoped>
.svg-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.18em;
  fill: currentColor;
  overflow: hidden;
}
</style>
